<?php
if (!defined('WEB_ROOT')) {
	exit;
}
$GLOBALS['curtlang']==""?$get_current_lang='en-US':$get_current_lang=$GLOBALS['curtlang'];   
$product = getProductDetail($pdId, $catId);
// we have $pd_name, $pd_price, $pd_description, $pd_image, $cart_url
extract($product);
?> 
<table width="100%" border="0" cellspacing="0" cellpadding="10">
 <tr> 
  <td align="center"><img src="<?php echo $pd_image; ?>" border="0" alt="<?php echo $pd_name; ?>"></td>
  <td valign="middle">
<strong>
<?php
if($get_current_lang=='en-US')
    $pd_name;
else
    echo $pd_name_vi; 
?>
</strong><br>
        Price : <?php echo displayAmount($pd_price); ?><br>
<?php
// if we still have this product in stock
// show the 'Add to cart' button
if ($pd_qty > 0) {
?>
<input type="button" name="btnAddToCart" value="" onClick="window.location.href='<?php echo $cart_url; ?>';" class="add">
<?php
} else {
	echo 'Out Of Stock';
}
?>
  </td>
   <td colspan="2">Promotion >
   <?php echo $pd_promotion; ?>
   </td>
 </tr>
 
 <tr align="left"> 
  <td colspan="2">
  <?php 
  if($get_current_lang=='en-US')
      echo $pd_description; 
      else
          echo $pd_description_vi; 
  ?></td>
 </tr>
</table>
